package com.uni.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 订单
 * @author yuyanzheng
 *
 */
@NoArgsConstructor
@Data
public class OrderDTO {
	private Long id;
	private String orderNo;
	private Long userId;
	private Long takerUserId;
	private UserBaseInfoDTO user;
	private UserBaseInfoDTO takerUser;
	private Long schoolId;
	private Integer price;
	private Integer type;
	private Integer payType;
	private String address;
	private String phone;
	private String username;
	private String remark;
	private Integer status;

	@JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd HH:mm:ss")
	private Date updateTime;

	@JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd HH:mm:ss")
	private Date createTime;

	@JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd HH:mm:ss")
	private Date confirmDeliverTime;
	
	private int role;
	
	private ExpressOrderDTO expressOrder;
	
	private ShoppingOrderDTO shoppingOrder;
	
}
